/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "pch.h"
#include "文件构建路径.h"

using t_模块路径 = std::map<std::u16string, std::filesystem::path>;
using t_模块路径组 = std::set<std::filesystem::path>;

static std::map<std::u16string, t_模块路径组> g模块路径;
static std::map<std::u16string, std::filesystem::path> g模块编译保存路径;

void f_codefile_添加模块路径(const std::u16string& 工程名称, const std::filesystem::path& path){
    g模块路径[工程名称].insert(path);
}

void f_codefile_设置模块编译保存路径(const std::u16string& 工程名称, const std::filesystem::path& path){
    g模块编译保存路径[工程名称] = path;
}

std::set<std::filesystem::path>& f_codefile_取模块文件(const std::u16string& 工程名称){
    return g模块路径[工程名称];
}




